package com.hoppinzq.service;


import com.hoppinzq.bean.TestBean;
import com.hoppinzq.service.exception.aop.ExceptionCatchRemote;
import com.hoppinzq.service.http.annotation.HttpHeader;
import com.hoppinzq.service.http.annotation.HttpHeaders;

import java.io.InputStream;

public interface TestService {
    String sayTest(String msg);
    int getDev(int i, int j);
    String fileTest(InputStream inputStream);

    @HttpHeader(key = "x-zhang1",value = "getValue1")
    @HttpHeader(key = "x-zhang2",value = "getValue2")
    String getBeanName(TestBean testBean);

    @HttpHeaders({
        @HttpHeader(key = "x-zhang0",value = "qi0"),
        @HttpHeader(key = "x-zhang1",value = "qi1"),
        @HttpHeader(key = "x-zhang2",value = "qi2")
    })
    @HttpHeader(key = "x-token",value = "qwe123zc")
    @ExceptionCatchRemote
    String getTraceId();
}